using System;
using System.Drawing;
using System.Windows.Forms;

namespace SBPweb.Themes.Windows.Schemes
{
	/// <summary>
	/// Class of CustomColorTable
	/// </summary>
    public class CustomColorTable : ProfessionalColorTable
    {
        #region Private fields

        private Scheme pScheme;

        #endregion

        #region Constructor logic

		/// <summary>
		/// Constructor of CustomColorTable
		/// </summary>
		/// <param name="scheme"></param>
        public CustomColorTable(Scheme scheme)
        {
            pScheme = scheme;
        }

        #endregion

        #region Property overrides

		/// <summary>
		/// Color of tootlstrip gradient begin
		/// </summary>
        public override Color ToolStripGradientBegin
        {
            get
            {
                return pScheme.Colors.ControlLight;
            }
        }

		/// <summary>
		/// Color of tootlstrip gradient end
		/// </summary>
        public override Color ToolStripGradientEnd
        {
            get
            {
                return pScheme.Colors.ContainerMid;
            }
        }

		/// <summary>
		/// Color of tootlstrip gradient middle
		/// </summary>
        public override Color ToolStripGradientMiddle
        {
            get
            {
                return pScheme.Colors.ControlMid;
            }
        }

        #endregion
    }
}